//
//  AddCargoListTableViewCell.m
//  DA_V
//
//  Created by 中亿世联前台 on 15/5/7.
//  Copyright (c) 2015年 zhouhai. All rights reserved.
//

#import "AddCargoListTableViewCell.h"
#import "AddTableView.h"
#import "InterFace.h"
#import "UIViewAdditions.h"
#import "ZiDongBuHuoListModel.h"
@implementation AddCargoListTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        //表格标题
        self.table = [[[NSBundle mainBundle] loadNibNamed:@"Shopping_list_xibs" owner:self options:nil] objectAtIndex:7];
        self.table.frame = CGRectMake(10, 0, SCREEN_WIDTH - 20, 40);
        [self.contentView addSubview:self.table];
        
    }
    return self;
}
- (void)showListView:(id)data{
    ZiDongBuHuoListModel *model = data;
//    @property (weak, nonatomic) IBOutlet UILabel *shangPingName;//商品名
//    @property (weak, nonatomic) IBOutlet UILabel *kuCunNum;//原库存
//    
//    @property (weak, nonatomic) IBOutlet UILabel *addCunCunNum;//补充库存
//    @property (weak, nonatomic) IBOutlet UILabel *giveNext;//发给下级
    self.table.shangPingName.text = model.ProductName;
    self.table.kuCunNum.text = [NSString stringWithFormat:@"%@",model.OriginStock];
    self.table.addCunCunNum.text = [NSString stringWithFormat:@"%@",model.MakeupStock];
    self.table.giveNext.text = [NSString stringWithFormat:@"%@",model.SaleStock];
}
@end
